package com.zmc.admin.infrastructure.dao;

import com.zmc.admin.infrastructure.entity.SysDeptEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 部门表
 * 
 * @author zmc
 * @email 
 * @date 2024-10-09 17:27:49
 */
@Mapper
public interface SysDeptDao extends BaseMapper<SysDeptEntity> {

    int selectNormalChildrenDeptById(Long deptId);

    int hasChildByDeptId(Long deptId);

    int checkDeptExistUser(Long deptId);

    List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);

    List<SysDeptEntity> selectDeptList(SysDeptEntity dept);

}
